<template>
	<u-parse scrollTable :containerStyle="{height:'100%'}"></u-parse>
</template>

<script setup>
	import {ref} from "vue";
	import * as api from "@/api.js";
	import * as uniapp from "@dcloudio/uni-app";
	
	const content = ref();
	
	uniapp.onLoad(async option => {
		console.log(option)
		const result = await api.getAdDetail(option.id)
		if(result[1]) {
			uni.showModal({
				content:result[1],
				showCancel:false,
				success() {
					uni.navigateBack()
				}
			})
		} else {
			content.value = result[0]
		}
	})
	
</script>

<style>
	page{
		height: 100%;
	}
</style>
